package com.cskaoyan.wx.service;

import com.cskaoyan.bean.Feedback;
import com.cskaoyan.mapper.FeedbackMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class WxFeedbackServiceImpl implements WxFeedbackService {

    @Autowired
    FeedbackMapper feedbackMapper;

    @Override
    public void SubmitFeedback(Feedback feedback) {
        //todo:假设的，还没整合
        feedback.setUserId(1);
        feedback.setUsername("zs");
        feedback.setStatus(1);


        feedback.setAddTime(new Date());
        feedback.setUpdateTime(new Date());
        feedback.setDeleted(false);
         feedbackMapper.insert(feedback);
    }
}
